var Main = {
	play: function( href ) {
		try {
			/*Util.id( 'soundApplet' ).that().play( href );*/
			/*Util.id( 'soundApplet' ).play( href );*/
			/*document.RecordingApplet.that().play( href );*/
			/*document.RecordingApplet.play( href );*/

			var base = document.location.toString().replace( /\/users\/.*/, '' );

			/* neither of these seems to work... :-( */
			var applet = Util.newNode(
				'applet'
				, {
					  CODE:'org.chatty.applet.PlayApplet'
					, ARCHIVE:'/static/java/record/commons-codec-1.3.jar,/static/java/record/recorder-1.0.0-SNAPSHOT.jar'
					, WIDTH:1
					, HEIGHT:1
				}
			);

			var param = Util.newNode( 'param', {name:'href', value:base+href} );
			applet.appendChild( param );
			Util.id( 'pbAppletDiv' ).innerHTML = '';
			Util.id( 'pbAppletDiv' ).appendChild( applet );
		} catch( e ) {
			alert( e );
		}
	}
};
